package com.wyl.mapper

import com.wyl.pojo.User
import org.mybatis.spring.SqlSessionTemplate
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component

@Component("userMapper")
class UserMapperImpl : UserMapper {
    @Autowired
    private lateinit var sqlSession: SqlSessionTemplate

    override fun getUserList(): List<User> {
        val mapper = sqlSession.getMapper(UserMapper::class.java)
        return mapper.getUserList()
    }
}